use yew::prelude::*;

#[derive(Properties, PartialEq)]
pub struct Props {
  pub alert_type: AttrValue,
  pub message: AttrValue,
}

#[function_component]
pub fn Alert(props: &Props) -> Html {
  html! {
    <div class={
      format!("alert alert-{}",props.alert_type.clone())
    }>{props.message.clone()}</div>
  }
}
